#ifndef SINGLEAPP_H
#define SINGLEAPP_H

#include <QApplication>
#include <QtNetwork/QLocalSocket>
#include <QtNetwork/QLocalServer>
#include "ntlauncher.h"

class SingleApplication : public QApplication
{
    Q_OBJECT
public:
    SingleApplication(int &Argc, char **Argv);
    NtLauncher *MainWindow;
    bool IsRun();

private slots:
    void NewLocalConnection();

private:
    void InitLocalConnection();
    void NewLocalServer();
    bool InRun;
    QLocalServer *LocalServer;
    QString ServerName;
};

#endif
